<template>
<div class="shopimg">
    <router-link :to="{name:'utils',params:{proid:ite2.proid}}"  tag='li' v-for="(ite2, index) of shoplist" :key="index">
       <div class="img"><img :src="ite2.proimg" alt=""></div>
      <p>{{ite2.brand}}</p>
    </router-link>
 </div>
</template>

<script>
import axios from 'axios'
export default {
  props: ['li'],
  computed: {
    // normalizedSize: function () {
    //   return this.li.trim().toLowerCase()
    // }
  },
  data () {
    return {
      shoplist: []
    }
  },
  created () {
    console.log(22312321)
    axios.get('/pro/shop?classification=' + this.li).then(res => {
      this.shoplist = res.data.data
    })
  }
}
</script>

<style lang="scss">
 .shopimg{
   display: flex;
   flex-wrap: wrap;
   border-bottom: 1px solid #e5e5e5;
   padding: 3px;
   li{
     min-height: 100px;
     width: 85px;
     justify-content: center;
     text-align: center;
     margin:20px 0;
     .img{
       width:85px;
       height:100%;
       img{width: 85px;
       height:100%}
     }
   }
 }
</style>
